package com.black.app.service.store;

import com.black.app.domain.req.store.add.AppStoreCategoryAddReq;
import com.black.app.domain.req.store.query.AppStoreCategoryQueryReq;
import com.black.app.domain.resp.store.AppStoreCategoryResp;
import com.black.app.domain.resp.store.AppStoreCategoryTreeResp;
import com.black.app.domain.resp.store.AppStoreProductsTreeResp;
import com.black.app.domain.store.AppStoreCategory;
import com.baomidou.mybatisplus.extension.service.IService;
import lombok.extern.log4j.Log4j2;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 12572
* @description 针对表【app_store_category】的数据库操作Service
* @createDate 2024-10-28 08:58:44
*/

public interface AppStoreCategoryService extends IService<AppStoreCategory> {

    List<AppStoreCategoryResp> search();

    // 获取商品分类树
    List<AppStoreCategoryTreeResp> tree();

    AppStoreCategoryResp findById(Long id);

    boolean add(AppStoreCategoryAddReq req);

    boolean deleteById(Long id);

    List<AppStoreProductsTreeResp> homeStoreTree();
}
